﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="MasterAccount.aspx.cs" Inherits="Pages_Dashboard_MasterAccountaspx" %>

<%@ Register Src="~/Controls/General/SideMenus/MasterSideMenu.ascx" TagPrefix="uc"
    TagName="MasterAccountSideMenu" %>
<%@ Register Src="~/Controls/Reports/AccountOverview.ascx" TagPrefix="uc" TagName="AccountOverview" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">

    <script type="text/javascript">
        $(document).ready(function () {
            $('.Collapse, .Expand').click(function () { $(this).parents('.summary').next().slideToggle(); toggleExpand($(this), $(this).parents('.summary')) });
        }
		);
        function toggleExpand(icon, container) {
            if (icon.attr('src') == '/Images/Gui/Buttons/2downarrow.png') {
                icon.attr({ src: '/Images/Gui/Buttons/3uparrow.png', alt: 'Collapse' });
                container.addClass('Open');
            }
            else {
                icon.attr({ src: '/Images/Gui/Buttons/2downarrow.png', alt: 'Expand' });
                container.removeClass('Open');
            }
        }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <h1>
        <asp:Literal runat="server" ID="ltrName"></asp:Literal>
        Master account
    </h1>
    <div class="AccountsDisplay">
        <h2>
            Accounts</h2>
        <hr />
        <p>
            <%=Resources.Texts.AccountOverview_GraphExplenation %>
        </p>
        <div class="overView">
            <ul>
                <asp:Repeater runat="server" ID="repAccounts">
                    <ItemTemplate>
                        <li class="PostsListItem">
                            <uc:AccountOverview runat="server" Account='<%#Container.DataItem %>' />
                        </li>
                    </ItemTemplate>
                </asp:Repeater>
            </ul>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" runat="server" ContentPlaceHolderID="LeftMainColContent">
    <uc:MasterAccountSideMenu ID="ucMasterAccountSideMenu" runat="server" />
</asp:Content>